package com.Pratice;

import java.util.Scanner;

public class PREV52 {

	public static void main(String[] args) {
		String res = "";
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		a = a % b;
		int n = scan.nextInt();
		while(n-- + 3 > 1)
		{
			a = a*10;
			if(n <= 0)
				res+=a/b;
			a = a%b;
			
		}
		System.out.println(res);
	}

}
